package com.aios.action.settings.switchPanel;

import org.apache.log4j.Logger;

public class SwitchPanelViewAction extends AbstractSwitchPanelAction {

	private static final long serialVersionUID = 1L;
	private static Logger logger = Logger.getLogger(SwitchPanelViewAction.class);
	
	public String execute() {
		
		try {
		
			this.switchPanel = switchPanelService.findById(id);
			
			if(actionMessage != null && !(actionMessage.equals(""))) {
				addActionMessage(actionMessage);
			}
			
		} catch (Exception e) {
			logger.error(e);
		}

		return SUCCESS;
	}

}
